package video.services;

import common.Resquest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import resgistor.Video;

@FeignClient(name="xdclass-order-service", path = "/api/order/c")
public interface VideoOrderService {
    @GetMapping("/addVideoOrder")
    Resquest addVideoOrder(@RequestParam("id") Integer id,@RequestParam("title") String videoTitle);
    @PostMapping("/addVideoOrder2")
    Resquest addVideoOrder2(@RequestBody Video video);
}
